package com.example.day12_br;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class JingReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();//频道号
        if("com.bw.2208".equals(action)){
            Log.d("sss", "onReceive: 静态注册的关播接受者接收到了广播");
        }else if("com.bw.2209".equals(action)){
            Log.d("sss", "onReceive: 静态注册的关播接受者接收到了广播2209");
        }
    }
}
